try:
    from tpl_helpers import __rand_questions, __print_category
except ImportError:
    from .tpl_helpers import __rand_questions, __print_category

def Loop_C( _list=[2, 8, 4, 6, 9, 0, 1]  ): # {=%(track['S`1'])s}
    S = 0 # >>>S`0
    n = 0
    for x in _list:
        n = n + 1; S = S + x; print(S)       # >>>S`1
        if x > S/n:
            S = S / 2; print(S)   # >>>S`2

Loop_C()

        
def Loop_pseudomax(_list=[2, 8, 4, 6, 9, 0, 1]):
    previous = 0
    for x in _list:
        if x > previous:
            print( x )
        previous = x


def ListFilter(_info = [5, 8, 3, 2, 10]):
    """What will be printed?"""
    for x in _info:
         if x > 5:
            print( x, end=" "  )

ListFilter()

def ListConditionalCount( _info=[5, 1, 3, 2, 5] ):
    """What will be printed?"""
    counter = 0
    for x in _info:
         counter += 1
         if x > counter:
            print( x, counter, end=" " )


def ListFindMin(_info = [5, 8, 3, 2, 10]):
    """What will be printed?"""
    min = 1000
    for x in _info:
        if x < min:
            min = x
            print( x, end=" "  )

ListFindMin()
